package cn.edu.scau.cmi.wuzewei.composite.safe;

public class SafeLeaf implements SafeComponent {

	public String name;
	
	@Override
	public String doSomething() {

		return null;
	}

	@Override
	public String toString() {
		return name;
	}
	
	SafeComponent parentComponent;

	public SafeLeaf(SafeComponent safeComponent, String myname) {
		this.parentComponent = safeComponent;
		
		name = myname;
	}

}
